Home

Operator Usage

Name

rescale

Description

rescale sp
rescale[t] sp
rescale the coefficients in sp such that the max coefficient is 1, or t if specified
if applied to a sequence, apply rescale to each of the component superpositions


Examples

rescale (2|alpha> + 3|beta> + 5|gamma> + 7|delta>)
    0.285714|alpha> + 0.428571|beta> + 0.714286|gamma> + |delta>

rescale[100] (3|x> + |y> + 2|z>)
    100|x> + 33.333333|y> + 66.666667|z>


See also

Operator type

core normal, core compound